package com.googlecode.gwtbb.client.only.widget.form;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Apr 3, 2009
 */
public abstract class PrototypeFormDialogPushButton extends FormDialogPushButton {
	PrototypeDialogFormStarter formStarter;

	public PrototypeFormDialogPushButton(String buttonText) {
		super(buttonText);
		formStarter = new PrototypeDialogFormStarter() {
			public FormWidget createForm() {
				return PrototypeFormDialogPushButton.this.createForm();
			}
		};
	}

	public FormStarter getFormStarter() {
		return formStarter;
	}

	public void startProcess() {
		formStarter.startProcess();
	}
}
